﻿using Medianamik.DummyWebSite.Data;
using Medianamik.DummyWebSite.Data.Repositories;
using Medianamik.UI.Web.Membership.Presenters;
using Medianamik.UI.Web.Membership.Views;
using Medianamik.UI.Web.MVP.Presentation;
using Medianamik.UI.Web.Membership.Data.Repositories;

namespace Medianamik.DummyWebSite.Container.Registries
{
    public class MembershipRegistry : StructureMap.Configuration.DSL.Registry
    {
        public MembershipRegistry()
        {
            ForRequestedType<ModulePresenter<IUserList>>()
                .TheDefaultIsConcreteType<UserListPresenter<UserProfile>>();
            ForRequestedType<IUserProfileRepository<UserProfile>>()
                .TheDefaultIsConcreteType<UserProfileRepository>();
        }
    }
}
